package visualcbir.visualstructures;

import visualcbir.Model;
import visualcbir.ModelComposed;
import visualcbir.node.ModelNode;
import visualcbir.node.ViewNode;
import visualcbir.visualstructures.ring.VSRings;

/**
 *
 * @author sheila
 */
public class VSRingsRings extends VSRings{
    public VSRingsRings(ModelComposed oModel,  int piNumSubviews){
        super(oModel,piNumSubviews);
    }
     public void addView(Model oModelAdded) {
         if(oModelAdded instanceof ModelNode)
            super.addView(new ViewNode((ModelNode)oModelAdded));
         else if(oModelAdded instanceof ModelComposed)
            super.addView(new VSRings((ModelComposed)oModelAdded,13));
    }
}
